"use strict";

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = (app) => {
    const { router, controller } = app;
    router.get("/", controller.home.index);
    //查询所有数据
    router.get("/search", controller.user.search);
    //登录接口
    router.post("/login", controller.user.login);
};
